.class public Les/n9;
.super Ljava/io/RandomAccessFile;
.source "MPEG4File.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/n9$a;
    }
.end annotation


# static fields
.field private static final g:Z


# instance fields
.field private a:I

.field private b:J

.field private c:Z

.field private d:Z

.field private e:Landroid/util/LongSparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/LongSparseArray<",
            "Les/n9$a;",
            ">;"
        }
    .end annotation
.end field

.field private f:Ljava/util/Stack;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Stack<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x18

    if-lt v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    sput-boolean v0, Les/n9;->g:Z

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/FileNotFoundException;
        }
    .end annotation

    .line 1
    invoke-direct {p0, p1, p2}, Ljava/io/RandomAccessFile;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Les/n9;->a:I

    const-wide/16 v0, -0x1

    .line 3
    iput-wide v0, p0, Les/n9;->b:J

    .line 4
    iput-boolean p1, p0, Les/n9;->c:Z

    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Les/n9;->d:Z

    .line 6
    new-instance p1, Landroid/util/LongSparseArray;

    const/4 p2, 0x2

    invoke-direct {p1, p2}, Landroid/util/LongSparseArray;-><init>(I)V

    iput-object p1, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    .line 7
    new-instance p1, Ljava/util/Stack;

    invoke-direct {p1}, Ljava/util/Stack;-><init>()V

    iput-object p1, p0, Les/n9;->f:Ljava/util/Stack;

    return-void
.end method

.method private a(Ljava/nio/ByteBuffer;I)I
    .locals 4

    move v0, p2

    :goto_0
    add-int/lit8 v1, v0, 0x2

    .line 33
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 34
    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v2

    if-nez v2, :cond_2

    add-int/lit8 v2, v0, 0x1

    invoke-virtual {p1, v2}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v3

    if-eqz v3, :cond_0

    goto :goto_1

    .line 35
    :cond_0
    invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->get(I)B

    move-result v1

    const/4 v3, 0x1

    if-ne v1, v3, :cond_1

    add-int/lit8 v0, v0, 0x3

    sub-int/2addr v0, p2

    return v0

    :cond_1
    move v0, v2

    goto :goto_0

    :cond_2
    :goto_1
    const/4 p1, 0x0

    return p1
.end method

.method private a(IJLes/n9$a;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 82
    invoke-interface {p4, p2, p3}, Les/n9$a;->a(J)J

    move-result-wide p2

    const-string v0, "mdhd"

    .line 83
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 84
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 85
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 86
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 87
    invoke-interface {p4}, Les/n9$a;->a()I

    move-result p1

    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 88
    invoke-interface {p4}, Les/n9$a;->a()I

    move-result p1

    int-to-long v1, p1

    mul-long p2, p2, v1

    long-to-double p1, p2

    const-wide p3, 0x411e848000000000L    # 500000.0

    invoke-static {p1, p2}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr p1, p3

    const-wide p3, 0x412e848000000000L    # 1000000.0

    div-double/2addr p1, p3

    double-to-int p1, p1

    .line 89
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 90
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 91
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 92
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private a(JI)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 60
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    long-to-int v1, v0

    const-string v0, "mvhd"

    .line 61
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 62
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 63
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 64
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/16 v1, 0x3e8

    .line 65
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    mul-long p1, p1, v2

    long-to-double p1, p1

    const-wide v1, 0x411e848000000000L    # 500000.0

    .line 66
    invoke-static {p1, p2}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr p1, v1

    const-wide v1, 0x412e848000000000L    # 1000000.0

    div-double/2addr p1, v1

    double-to-int p1, p1

    .line 67
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/high16 p1, 0x10000

    .line 68
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/16 p1, 0x100

    .line 69
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 70
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 71
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 72
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 73
    invoke-direct {p0, v0}, Les/n9;->c(I)V

    .line 74
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 75
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 76
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 77
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 78
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 79
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    add-int/lit8 p3, p3, 0x1

    .line 80
    invoke-virtual {p0, p3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 81
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private a(JLes/n9$a;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "stbl"

    .line 93
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const-string v0, "stsd"

    .line 94
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 95
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v0, 0x1

    .line 96
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 97
    invoke-interface {p3}, Les/n9$a;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 98
    invoke-direct {p0, p3}, Les/n9;->a(Les/n9$a;)V

    goto :goto_0

    .line 99
    :cond_0
    invoke-direct {p0, p3}, Les/n9;->j(Les/n9$a;)V

    .line 100
    :goto_0
    invoke-direct {p0}, Les/n9;->n()V

    .line 101
    invoke-direct {p0, p1, p2, p3}, Les/n9;->b(JLes/n9$a;)V

    .line 102
    invoke-interface {p3}, Les/n9$a;->f()Z

    move-result p1

    if-nez p1, :cond_1

    .line 103
    invoke-direct {p0, p3}, Les/n9;->g(Les/n9$a;)V

    .line 104
    :cond_1
    invoke-direct {p0, p3}, Les/n9;->h(Les/n9$a;)V

    .line 105
    invoke-direct {p0, p3}, Les/n9;->f(Les/n9$a;)V

    .line 106
    invoke-interface {p3}, Les/n9$a;->k()Z

    move-result p1

    if-eqz p1, :cond_2

    iget-wide p1, p0, Les/n9;->b:J

    const-wide/16 v0, 0x0

    cmp-long v2, p1, v0

    if-gez v2, :cond_2

    .line 107
    invoke-direct {p0, p3}, Les/n9;->i(Les/n9$a;)V

    goto :goto_1

    .line 108
    :cond_2
    invoke-direct {p0, p3}, Les/n9;->e(Les/n9$a;)V

    .line 109
    :goto_1
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private a(Les/n9$a;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "mp4a"

    .line 110
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 111
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 112
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const/4 v1, 0x1

    .line 113
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 114
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 115
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 116
    invoke-interface {p1}, Les/n9$a;->p()I

    move-result v1

    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const/16 v1, 0x10

    .line 117
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 118
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 119
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 120
    invoke-interface {p1}, Les/n9$a;->d()I

    move-result v0

    shl-int/2addr v0, v1

    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 121
    invoke-direct {p0, p1}, Les/n9;->d(Les/n9$a;)V

    .line 122
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 123
    iget-object v0, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v0, 0x0

    .line 124
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 125
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/util/Collection;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "ilst"

    .line 50
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 51
    invoke-interface {p1}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v0, 0x0

    const/4 v1, 0x0

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    const/4 v3, 0x1

    add-int/2addr v1, v3

    .line 52
    invoke-direct {p0, v1}, Les/n9;->b(I)V

    const-string v4, "data"

    .line 53
    invoke-direct {p0, v4}, Les/n9;->a(Ljava/lang/String;)V

    .line 54
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 55
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 56
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 57
    invoke-direct {p0}, Les/n9;->n()V

    .line 58
    invoke-direct {p0}, Les/n9;->n()V

    goto :goto_0

    .line 59
    :cond_0
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private a(Ljava/util/Map;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-eqz p1, :cond_1

    .line 36
    invoke-interface {p1}, Ljava/util/Map;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const-string v0, "meta"

    .line 37
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 38
    invoke-direct {p0}, Les/n9;->q()V

    .line 39
    invoke-interface {p1}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v0

    invoke-direct {p0, v0}, Les/n9;->a(Ljava/util/Set;)V

    .line 40
    invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;

    move-result-object p1

    invoke-direct {p0, p1}, Les/n9;->a(Ljava/util/Collection;)V

    .line 41
    invoke-direct {p0}, Les/n9;->n()V

    :cond_1
    :goto_0
    return-void
.end method

.method private a(Ljava/util/Set;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "keys"

    .line 42
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 43
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 44
    invoke-interface {p1}, Ljava/util/Set;->size()I

    move-result v0

    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 45
    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v1, "mdta"

    .line 46
    invoke-direct {p0, v1}, Les/n9;->a(Ljava/lang/String;)V

    .line 47
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 48
    invoke-direct {p0}, Les/n9;->n()V

    goto :goto_0

    .line 49
    :cond_0
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private b(I)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 62
    iget-object v0, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    const/4 v0, 0x0

    .line 63
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 64
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    return-void
.end method

.method private b(IJLes/n9$a;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "tkhd"

    .line 19
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x7

    .line 20
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 21
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 22
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 23
    invoke-interface {p4}, Les/n9$a;->i()I

    move-result p1

    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 p1, 0x0

    .line 24
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 25
    invoke-interface {p4, p2, p3}, Les/n9$a;->a(J)J

    move-result-wide p2

    const-wide/16 v0, 0x3e8

    mul-long p2, p2, v0

    long-to-double p2, p2

    const-wide v0, 0x411e848000000000L    # 500000.0

    .line 26
    invoke-static {p2, p3}, Ljava/lang/Double;->isNaN(D)Z

    add-double/2addr p2, v0

    const-wide v0, 0x412e848000000000L    # 1000000.0

    div-double/2addr p2, v0

    double-to-int p2, p2

    .line 27
    invoke-virtual {p0, p2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 28
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 29
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 30
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 31
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 32
    invoke-interface {p4}, Les/n9$a;->f()Z

    move-result p2

    if-eqz p2, :cond_0

    const/16 p2, 0x100

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    :goto_0
    invoke-virtual {p0, p2}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 33
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 34
    iget p2, p0, Les/n9;->a:I

    invoke-direct {p0, p2}, Les/n9;->c(I)V

    .line 35
    invoke-interface {p4}, Les/n9$a;->f()Z

    move-result p2

    if-eqz p2, :cond_1

    .line 36
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 37
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_1

    .line 38
    :cond_1
    invoke-interface {p4}, Les/n9$a;->getWidth()I

    move-result p1

    shl-int/lit8 p1, p1, 0x10

    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 39
    invoke-interface {p4}, Les/n9$a;->getHeight()I

    move-result p1

    shl-int/lit8 p1, p1, 0x10

    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 40
    :goto_1
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private b(JLes/n9$a;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 47
    invoke-interface {p3}, Les/n9$a;->o()J

    move-result-wide v0

    const-wide/16 v2, -0x1

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    cmp-long v2, v0, p1

    if-eqz v2, :cond_0

    sub-long/2addr v0, p1

    goto :goto_0

    :cond_0
    const-wide/16 v0, 0x0

    .line 48
    :goto_0
    invoke-interface {p3}, Les/n9$a;->a()I

    move-result p1

    int-to-long p1, p1

    mul-long v0, v0, p1

    const-wide/32 p1, 0x7a120

    add-long/2addr v0, p1

    const-wide/32 p1, 0xf4240

    div-long/2addr v0, p1

    long-to-int p1, v0

    int-to-long p1, p1

    .line 49
    invoke-interface {p3}, Les/n9$a;->l()Ljava/util/List;

    move-result-object p3

    .line 50
    invoke-interface {p3}, Ljava/util/List;->isEmpty()Z

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-nez v0, :cond_1

    .line 51
    invoke-interface {p3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    .line 52
    aget v3, v0, v1

    int-to-long v3, v3

    add-long/2addr v3, p1

    long-to-int p1, v3

    aput p1, v0, v1

    :cond_1
    const-string p1, "stts"

    .line 53
    invoke-direct {p0, p1}, Les/n9;->a(Ljava/lang/String;)V

    .line 54
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 55
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result p1

    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 56
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result p1

    mul-int/lit8 p1, p1, 0x4

    mul-int/lit8 p1, p1, 0x2

    new-array p1, p1, [B

    const/4 p2, 0x0

    .line 57
    :goto_1
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    if-ge p2, v0, :cond_2

    .line 58
    invoke-interface {p3, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    aget v0, v0, v2

    mul-int/lit8 v3, p2, 0x8

    invoke-static {v0, p1, v3}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    .line 59
    invoke-interface {p3, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [I

    aget v0, v0, v1

    add-int/lit8 v3, v3, 0x4

    invoke-static {v0, p1, v3}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 p2, p2, 0x1

    goto :goto_1

    .line 60
    :cond_2
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->write([B)V

    .line 61
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private b(Les/n9$a;)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 41
    invoke-interface {p1}, Les/n9$a;->m()[B

    move-result-object v0

    .line 42
    invoke-interface {p1}, Les/n9$a;->e()I

    move-result p1

    const/4 v1, 0x4

    .line 43
    aget-byte v2, v0, v1

    and-int/lit16 v2, v2, 0xfc

    or-int/lit8 v2, v2, 0x3

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    const-string v1, "avcC"

    .line 44
    invoke-direct {p0, v1}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v1, 0x0

    .line 45
    invoke-virtual {p0, v0, v1, p1}, Ljava/io/RandomAccessFile;->write([BII)V

    .line 46
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private b([BII)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 12
    invoke-virtual {p0, p3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 13
    invoke-virtual {p0, p1, p2, p3}, Ljava/io/RandomAccessFile;->write([BII)V

    return-void
.end method

.method private c(Ljava/nio/ByteBuffer;)I
    .locals 3

    .line 1
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result v0

    .line 2
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v0, v1, :cond_1

    .line 3
    invoke-direct {p0, p1, v0}, Les/n9;->a(Ljava/nio/ByteBuffer;I)I

    move-result v2

    if-lez v2, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    add-int/2addr v0, v2

    .line 4
    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    return v2
.end method

.method private c(Ljava/lang/String;)Ljava/lang/String;
    .locals 3

    .line 39
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    return-object v1

    :cond_0
    const-string v0, "audio/"

    .line 40
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string v0, "audio/mp4a-latm"

    .line 41
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_3

    const-string p1, "mp4a"

    return-object p1

    :cond_1
    const-string v0, "video/"

    .line 42
    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    const-string v0, "video/avc"

    .line 43
    invoke-static {p1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_3

    const-string p1, "avc1"

    return-object p1

    .line 44
    :cond_2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Track ("

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ") other than video/audio/metadata is not supported"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "mpf"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/util/k;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    return-object v1
.end method

.method private c(I)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/high16 v0, -0x10000

    const/high16 v1, 0x10000

    const/4 v2, 0x0

    if-eqz p1, :cond_3

    const/16 v3, 0x5a

    if-eq p1, v3, :cond_2

    const/16 v3, 0xb4

    if-eq p1, v3, :cond_1

    const/16 v3, 0x10e

    if-ne p1, v3, :cond_0

    const/high16 p1, 0x10000

    const/4 v0, 0x0

    const/high16 v1, -0x10000

    goto :goto_0

    .line 29
    :cond_0
    new-instance p1, Ljava/io/IOException;

    const-string v0, "Should never reach this unknown rotation"

    invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    const/4 p1, 0x0

    const/4 v1, 0x0

    const/high16 v3, -0x10000

    goto :goto_1

    :cond_2
    const/high16 p1, -0x10000

    const/4 v0, 0x0

    :goto_0
    const/4 v3, 0x0

    goto :goto_1

    :cond_3
    const/4 p1, 0x0

    const/high16 v0, 0x10000

    const/4 v1, 0x0

    const/high16 v3, 0x10000

    .line 30
    :goto_1
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 31
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 32
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 33
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 34
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 35
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 36
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 37
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/high16 p1, 0x40000000    # 2.0f

    .line 38
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    return-void
.end method

.method private c(JLes/n9$a;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 5
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    long-to-int v1, v0

    const-string v0, "trak"

    .line 6
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 7
    invoke-direct {p0, v1, p1, p2, p3}, Les/n9;->b(IJLes/n9$a;)V

    const-string v0, "mdia"

    .line 8
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 9
    invoke-direct {p0, v1, p1, p2, p3}, Les/n9;->a(IJLes/n9$a;)V

    .line 10
    invoke-direct {p0, p3}, Les/n9;->c(Les/n9$a;)V

    const-string v0, "minf"

    .line 11
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 12
    invoke-interface {p3}, Les/n9$a;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 13
    invoke-direct {p0}, Les/n9;->r()V

    goto :goto_0

    .line 14
    :cond_0
    invoke-direct {p0}, Les/n9;->s()V

    .line 15
    :goto_0
    invoke-direct {p0}, Les/n9;->o()V

    .line 16
    invoke-direct {p0, p1, p2, p3}, Les/n9;->a(JLes/n9$a;)V

    .line 17
    invoke-direct {p0}, Les/n9;->n()V

    .line 18
    invoke-direct {p0}, Les/n9;->n()V

    .line 19
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private c(Les/n9$a;)V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "hdlr"

    .line 20
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 21
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 22
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 23
    invoke-interface {p1}, Les/n9$a;->f()Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "soun"

    goto :goto_0

    :cond_0
    const-string v1, "vide"

    :goto_0
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 24
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 25
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 26
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 27
    invoke-interface {p1}, Les/n9$a;->f()Z

    move-result p1

    if-eqz p1, :cond_1

    const-string p1, "SoundHandle\n"

    goto :goto_1

    :cond_1
    const-string p1, "VideoHandle\n"

    :goto_1
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 28
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private d(Les/n9$a;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "esds"

    .line 7
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 8
    invoke-interface {p1}, Les/n9$a;->m()[B

    move-result-object v0

    .line 9
    invoke-interface {p1}, Les/n9$a;->e()I

    move-result p1

    const/4 v1, 0x0

    .line 10
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v2, 0x3

    .line 11
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeByte(I)V

    add-int/lit8 v3, p1, 0x17

    .line 12
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    .line 13
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 14
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeByte(I)V

    const/4 v3, 0x4

    .line 15
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    add-int/lit8 v3, p1, 0xf

    .line 16
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    const/16 v3, 0x40

    .line 17
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    const/16 v3, 0x15

    .line 18
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    .line 19
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 20
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeByte(I)V

    const v3, 0x17700

    .line 21
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 22
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v3, 0x5

    .line 23
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeByte(I)V

    .line 24
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeByte(I)V

    .line 25
    invoke-virtual {p0, v0, v1, p1}, Ljava/io/RandomAccessFile;->write([BII)V

    new-array p1, v2, [B

    .line 26
    fill-array-data p1, :array_0

    .line 27
    invoke-virtual {p0, p1, v1, v2}, Ljava/io/RandomAccessFile;->write([BII)V

    .line 28
    invoke-direct {p0}, Les/n9;->n()V

    return-void

    :array_0
    .array-data 1
        0x6t
        0x1t
        0x2t
    .end array-data
.end method

.method private e(Les/n9$a;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p1}, Les/n9$a;->k()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-wide v0, p0, Les/n9;->b:J

    goto :goto_0

    :cond_0
    const-wide/16 v0, 0x0

    .line 2
    :goto_0
    invoke-interface {p1}, Les/n9$a;->j()Ljava/util/List;

    move-result-object v2

    .line 3
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v3

    const/4 v4, 0x4

    if-eqz v3, :cond_1

    .line 4
    invoke-interface {p1}, Les/n9$a;->h()Ljava/util/List;

    move-result-object v2

    const/16 p1, 0x8

    goto :goto_1

    :cond_1
    const/4 p1, 0x4

    :goto_1
    if-ne p1, v4, :cond_2

    const-string v3, "stco"

    goto :goto_2

    :cond_2
    const-string v3, "co64"

    .line 5
    :goto_2
    invoke-direct {p0, v3}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v3, 0x0

    .line 6
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 7
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v5

    invoke-virtual {p0, v5}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 8
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v5

    mul-int v5, v5, p1

    new-array v5, v5, [B

    if-ne p1, v4, :cond_3

    .line 9
    :goto_3
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_4

    .line 10
    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    int-to-long v6, v4

    add-long/2addr v6, v0

    long-to-int v4, v6

    mul-int v6, v3, p1

    invoke-static {v4, v5, v6}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    .line 11
    :cond_3
    :goto_4
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_4

    .line 12
    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    add-long/2addr v6, v0

    mul-int v4, v3, p1

    invoke-static {v6, v7, v5, v4}, Lcom/esfile/screen/recorder/media/util/v;->a(J[BI)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_4

    .line 13
    :cond_4
    invoke-virtual {p0, v5}, Ljava/io/RandomAccessFile;->write([B)V

    .line 14
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private f(Les/n9$a;)V
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "stsc"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 3
    invoke-interface {p1}, Les/n9$a;->c()Ljava/util/List;

    move-result-object p1

    .line 4
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_0

    .line 5
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 6
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 7
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 8
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_1

    .line 9
    :cond_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 10
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit8 v1, v1, 0x4

    mul-int/lit8 v1, v1, 0x3

    new-array v1, v1, [B

    const/4 v3, 0x0

    .line 11
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v4

    if-ge v3, v4, :cond_1

    .line 12
    invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, [I

    aget v4, v4, v0

    mul-int/lit8 v5, v3, 0xc

    invoke-static {v4, v1, v5}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    .line 13
    invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, [I

    aget v4, v4, v2

    add-int/lit8 v6, v5, 0x4

    invoke-static {v4, v1, v6}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v5, v5, 0x8

    .line 14
    invoke-static {v2, v1, v5}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 15
    :cond_1
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->write([B)V

    .line 16
    :goto_1
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private g()V
    .locals 12
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 10
    iget-object v0, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->size()I

    move-result v0

    if-eqz v0, :cond_7

    iget-wide v0, p0, Les/n9;->b:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-gez v4, :cond_0

    goto/16 :goto_4

    .line 11
    :cond_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    .line 12
    :goto_0
    iget-object v5, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v5}, Landroid/util/LongSparseArray;->size()I

    move-result v5

    if-ge v4, v5, :cond_6

    .line 13
    iget-object v5, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v5, v4}, Landroid/util/LongSparseArray;->keyAt(I)J

    move-result-wide v5

    invoke-virtual {p0, v5, v6}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 14
    iget-object v5, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v5, v4}, Landroid/util/LongSparseArray;->valueAt(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/n9$a;

    .line 15
    invoke-interface {v5}, Les/n9$a;->j()Ljava/util/List;

    move-result-object v6

    .line 16
    invoke-interface {v6}, Ljava/util/List;->isEmpty()Z

    move-result v7

    const/4 v8, 0x4

    if-eqz v7, :cond_1

    .line 17
    invoke-interface {v5}, Les/n9$a;->h()Ljava/util/List;

    move-result-object v6

    const/16 v5, 0x8

    goto :goto_1

    :cond_1
    const/4 v5, 0x4

    :goto_1
    if-eqz v2, :cond_2

    .line 18
    array-length v7, v2

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v9

    mul-int v9, v9, v5

    if-ge v7, v9, :cond_3

    .line 19
    :cond_2
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v2

    mul-int v2, v2, v5

    new-array v2, v2, [B

    :cond_3
    if-ne v5, v8, :cond_4

    const/4 v7, 0x0

    .line 20
    :goto_2
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v8

    if-ge v7, v8, :cond_5

    .line 21
    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/Integer;

    invoke-virtual {v8}, Ljava/lang/Integer;->intValue()I

    move-result v8

    int-to-long v8, v8

    iget-wide v10, p0, Les/n9;->b:J

    add-long/2addr v8, v10

    long-to-int v9, v8

    mul-int v8, v7, v5

    invoke-static {v9, v2, v8}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v7, v7, 0x1

    goto :goto_2

    :cond_4
    const/4 v7, 0x0

    .line 22
    :goto_3
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v8

    if-ge v7, v8, :cond_5

    .line 23
    invoke-interface {v6, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/Long;

    invoke-virtual {v8}, Ljava/lang/Long;->longValue()J

    move-result-wide v8

    iget-wide v10, p0, Les/n9;->b:J

    add-long/2addr v8, v10

    mul-int v10, v7, v5

    invoke-static {v8, v9, v2, v10}, Lcom/esfile/screen/recorder/media/util/v;->a(J[BI)V

    add-int/lit8 v7, v7, 0x1

    goto :goto_3

    .line 24
    :cond_5
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    mul-int v6, v6, v5

    invoke-virtual {p0, v2, v3, v6}, Ljava/io/RandomAccessFile;->write([BII)V

    add-int/lit8 v4, v4, 0x1

    goto/16 :goto_0

    .line 25
    :cond_6
    invoke-virtual {p0, v0, v1}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 26
    iget-object v0, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v0}, Landroid/util/LongSparseArray;->clear()V

    :cond_7
    :goto_4
    return-void
.end method

.method private g(Les/n9$a;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "stss"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 3
    invoke-interface {p1}, Les/n9$a;->n()Ljava/util/List;

    move-result-object p1

    .line 4
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 5
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit8 v1, v1, 0x4

    new-array v1, v1, [B

    .line 6
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    .line 7
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    mul-int/lit8 v3, v0, 0x4

    invoke-static {v2, v1, v3}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 8
    :cond_0
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->write([B)V

    .line 9
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private h(Les/n9$a;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "stsz"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 4
    invoke-interface {p1}, Les/n9$a;->b()Ljava/util/List;

    move-result-object p1

    .line 5
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 6
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v1

    mul-int/lit8 v1, v1, 0x4

    new-array v1, v1, [B

    .line 7
    :goto_0
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    .line 8
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    mul-int/lit8 v3, v0, 0x4

    invoke-static {v2, v1, v3}, Lcom/esfile/screen/recorder/media/util/v;->a(I[BI)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 9
    :cond_0
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->write([B)V

    .line 10
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private i(Les/n9$a;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p1}, Les/n9$a;->j()Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    const/4 v2, 0x4

    if-eqz v1, :cond_0

    .line 3
    invoke-interface {p1}, Les/n9$a;->h()Ljava/util/List;

    move-result-object v0

    const/16 v1, 0x8

    goto :goto_0

    :cond_0
    const/4 v1, 0x4

    :goto_0
    if-ne v1, v2, :cond_1

    const-string v2, "stco"

    goto :goto_1

    :cond_1
    const-string v2, "co64"

    .line 4
    :goto_1
    invoke-direct {p0, v2}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v2, 0x0

    .line 5
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 6
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 7
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v2

    .line 8
    iget-object v4, p0, Les/n9;->e:Landroid/util/LongSparseArray;

    invoke-virtual {v4, v2, v3, p1}, Landroid/util/LongSparseArray;->put(JLjava/lang/Object;)V

    .line 9
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result p1

    mul-int p1, p1, v1

    int-to-long v0, p1

    add-long/2addr v2, v0

    invoke-virtual {p0, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V

    .line 10
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private j(Les/n9$a;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p1}, Les/n9$a;->g()Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-direct {p0, v0}, Les/n9;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 3
    invoke-direct {p0, v1}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v1, 0x0

    .line 4
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 5
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const/4 v2, 0x1

    .line 6
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 7
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 8
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 9
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 10
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 11
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 12
    invoke-interface {p1}, Les/n9$a;->getWidth()I

    move-result v3

    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 13
    invoke-interface {p1}, Les/n9$a;->getHeight()I

    move-result v3

    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const/high16 v3, 0x480000

    .line 14
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 15
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 16
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 17
    invoke-virtual {p0, v2}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 18
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeByte(I)V

    const-string v1, "                               "

    .line 19
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    const/16 v1, 0x18

    .line 20
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const/4 v1, -0x1

    .line 21
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeShort(I)V

    const-string v1, "video/avc"

    .line 22
    invoke-static {v0, v1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 23
    invoke-direct {p0, p1}, Les/n9;->b(Les/n9$a;)V

    :cond_0
    const-string p1, "pasp"

    .line 24
    invoke-direct {p0, p1}, Les/n9;->a(Ljava/lang/String;)V

    const/high16 p1, 0x10000

    .line 25
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 26
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 27
    invoke-direct {p0}, Les/n9;->n()V

    .line 28
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private n()V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    .line 3
    iget-object v2, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->pop()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    .line 4
    invoke-virtual {p0, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V

    sub-long v2, v0, v2

    long-to-int v3, v2

    .line 5
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 6
    invoke-virtual {p0, v0, v1}, Ljava/io/RandomAccessFile;->seek(J)V

    return-void
.end method

.method private o()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "dinf"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const-string v0, "dref"

    .line 2
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v0, 0x1

    .line 4
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const-string v1, "url "

    .line 5
    invoke-direct {p0, v1}, Les/n9;->a(Ljava/lang/String;)V

    .line 6
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 7
    invoke-direct {p0}, Les/n9;->n()V

    .line 8
    invoke-direct {p0}, Les/n9;->n()V

    .line 9
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private q()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "hdlr"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const-string v1, "mdta"

    .line 4
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 5
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 6
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 7
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 8
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->write(I)V

    .line 9
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private r()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "smhd"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 4
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 5
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method private s()V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "vmhd"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 4
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 5
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 6
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeShort(I)V

    .line 7
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method


# virtual methods
.method public a(Ljava/nio/ByteBuffer;)J
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 23
    iget-boolean v0, p0, Les/n9;->c:Z

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 24
    :cond_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    .line 25
    sget-boolean v2, Les/n9;->g:Z

    if-eqz v2, :cond_1

    .line 26
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result v2

    .line 27
    :goto_0
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v3

    if-lez v3, :cond_2

    .line 28
    invoke-direct {p0, p1}, Les/n9;->c(Ljava/nio/ByteBuffer;)I

    move-result v3

    .line 29
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result v4

    sub-int v5, v4, v2

    sub-int/2addr v5, v3

    .line 30
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v3

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I

    move-result v6

    add-int/2addr v6, v2

    invoke-direct {p0, v3, v6, v5}, Les/n9;->b([BII)V

    move v2, v4

    goto :goto_0

    .line 31
    :cond_1
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v2

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I

    move-result v3

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result v4

    add-int/2addr v3, v4

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    invoke-direct {p0, v2, v3, p1}, Les/n9;->b([BII)V

    .line 32
    :cond_2
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v2

    sub-long/2addr v2, v0

    return-wide v2
.end method

.method public a(I)V
    .locals 0

    .line 1
    iput p1, p0, Les/n9;->a:I

    return-void
.end method

.method public a(Ljava/util/List;Ljava/util/Map;)V
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Les/n9$a;",
            ">;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 2
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const-wide/16 v1, -0x1

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    const-wide/16 v4, 0x0

    if-eqz v3, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/n9$a;

    .line 3
    invoke-interface {v3}, Les/n9$a;->o()J

    move-result-wide v6

    cmp-long v3, v1, v4

    if-ltz v3, :cond_1

    cmp-long v3, v1, v6

    if-lez v3, :cond_0

    :cond_1
    move-wide v1, v6

    goto :goto_0

    :cond_2
    const-wide v6, 0x7fffffffffffffffL

    .line 4
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_3
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Les/n9$a;

    .line 5
    invoke-interface {v3, v1, v2}, Les/n9$a;->a(J)J

    move-result-wide v8

    cmp-long v3, v8, v4

    if-lez v3, :cond_4

    move-wide v4, v8

    :cond_4
    cmp-long v3, v8, v6

    if-gez v3, :cond_3

    move-wide v6, v8

    goto :goto_1

    .line 6
    :cond_5
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v3, 0x1

    if-le v0, v3, :cond_6

    .line 7
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Duration from tracks range is ["

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v3, ", "

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v3, "] us"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v3, "mpf"

    invoke-static {v3, v0}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    :cond_6
    const-string v0, "moov"

    .line 8
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    .line 9
    invoke-direct {p0, p2}, Les/n9;->a(Ljava/util/Map;)V

    .line 10
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p2

    invoke-direct {p0, v4, v5, p2}, Les/n9;->a(JI)V

    .line 11
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_2
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p2

    if-eqz p2, :cond_7

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Les/n9$a;

    .line 12
    invoke-direct {p0, v1, v2, p2}, Les/n9;->c(JLes/n9$a;)V

    goto :goto_2

    .line 13
    :cond_7
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method

.method public a(Z)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 14
    iget-boolean v0, p0, Les/n9;->c:Z

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 15
    iput-boolean v0, p0, Les/n9;->c:Z

    .line 16
    iput-boolean p1, p0, Les/n9;->d:Z

    .line 17
    iget-object v1, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;

    if-eqz p1, :cond_1

    const-string p1, "????mdat"

    .line 18
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    goto :goto_0

    .line 19
    :cond_1
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const-string p1, "mdat????????"

    .line 20
    invoke-virtual {p0, p1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 21
    :goto_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    iput-wide v0, p0, Les/n9;->b:J

    .line 22
    invoke-direct {p0}, Les/n9;->g()V

    return-void
.end method

.method public b(Ljava/nio/ByteBuffer;)J
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 14
    iget-boolean v0, p0, Les/n9;->c:Z

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 15
    :cond_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    .line 16
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->remaining()I

    move-result v2

    .line 17
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v3

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I

    move-result v4

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->position()I

    move-result p1

    add-int/2addr v4, p1

    invoke-virtual {p0, v3, v4, v2}, Ljava/io/RandomAccessFile;->write([BII)V

    .line 18
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v2

    sub-long/2addr v2, v0

    return-wide v2
.end method

.method public b()V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-boolean v0, p0, Les/n9;->c:Z

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/n9;->c:Z

    .line 3
    iget-object v0, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {v0}, Ljava/util/Stack;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 4
    :cond_0
    invoke-virtual {p0}, Ljava/io/RandomAccessFile;->getFilePointer()J

    move-result-wide v0

    .line 5
    iget-object v2, p0, Les/n9;->f:Ljava/util/Stack;

    invoke-virtual {v2}, Ljava/util/Stack;->pop()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    .line 6
    iget-boolean v4, p0, Les/n9;->d:Z

    if-eqz v4, :cond_1

    .line 7
    invoke-virtual {p0, v2, v3}, Ljava/io/RandomAccessFile;->seek(J)V

    sub-long v2, v0, v2

    long-to-int v3, v2

    .line 8
    invoke-virtual {p0, v3}, Ljava/io/RandomAccessFile;->writeInt(I)V

    goto :goto_0

    :cond_1
    const-wide/16 v4, 0x8

    add-long/2addr v4, v2

    .line 9
    invoke-virtual {p0, v4, v5}, Ljava/io/RandomAccessFile;->seek(J)V

    sub-long v2, v0, v2

    .line 10
    invoke-virtual {p0, v2, v3}, Ljava/io/RandomAccessFile;->writeLong(J)V

    .line 11
    :goto_0
    invoke-virtual {p0, v0, v1}, Ljava/io/RandomAccessFile;->seek(J)V

    :cond_2
    return-void
.end method

.method public d()V
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const-string v0, "ftyp"

    .line 1
    invoke-direct {p0, v0}, Les/n9;->a(Ljava/lang/String;)V

    const-string v0, "mp42"

    .line 2
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    const/4 v1, 0x0

    .line 3
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeInt(I)V

    const-string v1, "isom"

    .line 4
    invoke-virtual {p0, v1}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 5
    invoke-virtual {p0, v0}, Ljava/io/RandomAccessFile;->writeBytes(Ljava/lang/String;)V

    .line 6
    invoke-direct {p0}, Les/n9;->n()V

    return-void
.end method
